package com.zsw.example02;

public class Cylinder extends Circle {
    //圆柱的体积：底面积 * 高
    //         圆的面积 * 高
    //高是圆柱独特的
    private double height;
    public double getHeight(){
        return height;
    }
    public void setHeight(double height){
        this.height = height;
    }
    //计算圆柱的体积
    public double findVolume(){
        //圆的面积 来自父亲 *高
       //  double s = 3.14 * r * r * height;
        double s =findArea() * height;
        return s;
    }

}
